#ifndef STUDENTMANAGER_H
#define STUDENTMANAGER_H

#include <QtGui>

#include "Student.h"
#include "StudentEditor.h"

class StudentManager : public QSplitter
{
	Q_OBJECT

public:
	StudentManager( QWidget* parent  );
	virtual ~StudentManager();

private slots:
	void add();
	void remove();
	void itemSelected( QTreeWidgetItem* item, int col );

private:
	QTreeWidget* mTree;

	QMap< int, Student* > mStudents;

	Student* mSelectedStudent;

	StudentEditor* mStudentEditor;
};

#endif STUDENTMANAGER_H